home *** CD-ROM | disk | FTP | other *** search
- global gGlobalStepCount, gcurrentfullrecord, oIndexScroller, gTheFTword, gStatusField, gdescfield, gPreStyledFlag, gTickSND, gNewSetIsHereF, gchunksize, gFirstHotWord, gHotLinkList, gMACListenStatus, gKeyCount, gPrevWord, gkeylist, gModeState, gHopCounter, oTextScroller, oTextSlider, gScrollIncrK, gCurrEntryAttrib, gNopeSND, gholdTheFTword
-
- on hProcess Pthesearchtext
- hputmsg(RETURN & "Process begins for" && Pthesearchtext)
- hTextEntryProcess(Pthesearchtext)
- end
-
- on hTextEntryProcess Pthesearchtext
- global gEditKeys
- set gcurrentfullrecord to hParseAttrib(Pthesearchtext)
- set the itemDelimiter to "@"
- if (gcurrentfullrecord = EMPTY) or (gcurrentfullrecord = 0) then
- hReportStatus("Sorry, unable to find that.")
- hearit(gNopeSND)
- else
- hPrepStyles(gdescfield)
- mHomeScrollFields(oTextScroller)
- hPurgeMedia()
- hPrepIndexList(item 1 of gcurrentfullrecord)
- if gEditKeys then
- hPrepEditMode()
- end if
- hDisplayEntryname(item 2 of gcurrentfullrecord)
- delete item 1 of gcurrentfullrecord
- delete item 1 of gcurrentfullrecord
- hDisplayBodyText(gcurrentfullrecord)
- mPrepScrollStats(oTextScroller)
- hFetchMedia()
- hSetFormat()
- hReportStatus(" ")
- hCaptureThisMoment()
- end if
- if gModeState = #FoundSet then
- hFoundSetFeedback()
- end if
- hSysAlert(#LCARSREADY)
- unLoad()
- hRestoreLockWins()
- set gMemoryAlertFlag to 1
- hMemoryMonitor()
- if line 1 of field gdescfield starts "•" then
- hReportStatus("Displaying a user-written article.")
- end if
- end
-
- on hDetectKeyRoll wordnum, thefield
- if wordnum = gPrevWord then
- return
- end if
- if wordnum > 0 then
- set Lkeylistitem to getaProp(gHotLinkList, wordnum)
- if not voidp(Lkeylistitem) then
- set gchunksize to getAt(getAt(gkeylist, Lkeylistitem), 1)
- set gFirstHotWord to getPropAt(gkeylist, Lkeylistitem)
- else
- set gFirstHotWord to 0
- end if
- end if
- set gPrevWord to wordnum
- end
-
- on hFoundSetFeedback
- set Lnumofentries to mGetNdxLength(oIndexScroller)
- if gNewSetIsHereF then
- set Lphrase to " which were just added to the databank."
- else
- if mWhatFSlistType(oIndexScroller) = 1 then
- if Lnumofentries = 1 then
- set Lphrase to " which contains the word •" & gTheFTword & "•."
- else
- set Lphrase to " which contain the word •" & gTheFTword & "•."
- end if
- else
- if mWhatFSlistType(oIndexScroller) = 0 then
- set Lphrase to " related to the entry" && gTheFTword & "."
- else
- if mWhatFSlistType(oIndexScroller) = 3 then
- set Lphrase to " containing a video clip."
- else
- set Lphrase to "."
- end if
- end if
- end if
- end if
- hReportStatus("This is entry number" && gGlobalStepCount && "of" && mGetNdxLength(oIndexScroller) & Lphrase)
- end
-
- on hReportStatus pWhat
- set the text of cast gStatusField to string(pWhat)
- hearit(gTickSND)
- end
-